package com.sdkj.dspservice.common.base.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tm
 */
public interface CrudService<T> extends BaseService<T> {

    List<T> list(T entity);
    @Override
    List<T> list(Wrapper<T> queryWrapper);

    @Override
    List<T> list();

    @Override
    <E extends IPage<T>> E page(E page, Wrapper<T> queryWrapper);

    @Override
    <E extends IPage<T>> E page(E page);

    List<T> listLink(@Param(Constants.WRAPPER) Wrapper<T> wrapper);

}
